package org.ee.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * netty配置
 */
@Component
@ConfigurationProperties(prefix = "netty.idle")
public class NettyIdle {
    private long readIdleTimeout;
    private long writeIdleTimeout;
    private long allIdleTimeout;


    public long getReadIdleTimeout() {
        return readIdleTimeout;
    }

    public void setReadIdleTimeout(long readIdleTimeout) {
        this.readIdleTimeout = readIdleTimeout;
    }

    public long getWriteIdleTimeout() {
        return writeIdleTimeout;
    }

    public void setWriteIdleTimeout(long writeIdleTimeout) {
        this.writeIdleTimeout = writeIdleTimeout;
    }

    public long getAllIdleTimeout() {
        return allIdleTimeout;
    }

    public void setAllIdleTimeout(long allIdleTimeout) {
        this.allIdleTimeout = allIdleTimeout;
    }
}
